/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modele;

import java.util.Collection;
import java.util.HashSet;
import java.util.TreeSet;

/**
 *
 * @author abach
 */
public class Dep implements Comparable<Dep>{
    
    private String num;
    private Collection<Med> lesMeds = new TreeSet<Med>();

    public Dep(String num) {
        this.num = num;
       
    }

    public Collection<Med> getLesMeds() {
        return lesMeds;
    }

    public String getNum() {
        return num;
    }
    
    @Override
     public int compareTo(Dep m){
        return num.compareTo(m.num);
    }

    public void addUnMed(Med unMed) {
       lesMeds.add(unMed);
    }
    
}
